package main

type Rectangle struct {
	Length int
	Width  int
}

func calcArea(rectangle Rectangle) int {
	return rectangle.Length * rectangle.Width
}

func (rectangle Rectangle) calcArea() int {
	return rectangle.Length * rectangle.Width
}

func main1() {
	rectangle := Rectangle{10, 5}
	calcArea(rectangle)
}
